package com.adv.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeUtil {

	public static String data2String(Date date) {
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return df.format(date);
	}

	public static void main(String[] args) {
		System.out.println(data2String(new Date()));
	}
}
